<?php
namespace App\Http\Controllers\Resources;

use App\Http\Controllers\Controller;

use Auth;
use Illuminate\Support\Facades\View;
use Session;
use Request;
use \App\Services\Upload;
class UploadController extends Controller
{
    public function index(){
        $docModel = new \App\Models\DocClass();
        $doclist = $docModel->getList();
        return view('resources.upload',$doclist);
    }

    public function upload(){
        $data['show_name'] = trim(Request::input("title"));
        $data['language'] = trim(Request::input("language"));
        $data['first_class'] = trim(Request::input("first_class"));
        $data['second_class'] = trim(Request::input("second_class"));
        $up = Upload::input2Res("myfile","",$data);

        if($up){


        }
    }
}